﻿using System;
using System.Runtime.InteropServices;

namespace FileSC.Win.api
{
    internal class Windows
    {
        [DllImport("user32.dll", ExactSpelling = true, EntryPoint = "SwitchToThisWindow", CharSet = CharSet.None, CallingConvention = CallingConvention.StdCall)]
        internal static extern void SwitchToThisWindow(IntPtr hWnd, bool fAltTab);
        [DllImport("user32.dll", ExactSpelling = true, EntryPoint = "SetWindowPos", CharSet = CharSet.None, CallingConvention = CallingConvention.StdCall)]
        internal static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);

        internal const uint SWP_NOMOVE = 0x2;
        internal const uint SWP_NOSIZE = 0x1;
        internal static readonly IntPtr HWND_TOPMOST = new IntPtr(-1);
        internal static readonly IntPtr HWND_NOTOPMOST = new IntPtr(-2);
    }
}